package com.tomehay.termprojectmanage_server.mapper;
import java.util.List;
import java.util.Collection;
import org.apache.ibatis.annotations.Param;

import com.tomehay.termprojectmanage_server.pojo.Model.Plan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tomehay
 * @since 2023-06-20
 */
public interface PlanMapper extends BaseMapper<Plan> {

    int insertAll(Plan plan);

    int insertBatch(@Param("planCollection") List<Plan> planCollection);

    List<Plan> listAllById(@Param("id") Integer id);

    List<Plan> queryAll();

    int updateSelective(Plan plan);

    int count();

    List<Plan> selectAllByPersonalTaskId(@Param("personalTaskId") Integer personalTaskId);

    Plan selectOneById(@Param("id") Integer id);

}
